package com.huoyun.company.bean;

public class CompanyPerson {
	private int id;
	private long companyId;
	private String name;
	private String post;
	private String phone;
	private String crashPhone;
	private String email;
	private String fax;
	private String qq;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public long getCompanyId() {
		return companyId;
	}
	public void setCompanyId(long companyId) {
		this.companyId = companyId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getPost() {
		return post;
	}
	public void setPost(String post) {
		this.post = post;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCrashPhone() {
		return crashPhone;
	}
	public void setCrashPhone(String crashPhone) {
		this.crashPhone = crashPhone;
	}

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public int getRateSum(){
		return 9;
	}
	public int getCompleteRate(){
		int count=0;
		if(this.name!=null)
			count+=2;
		if(this.post!=null)
			count+=1;
		if(this.phone!=null)
			count+=2;
		if(this.crashPhone!=null)
			count+=1;
		if(this.email!=null)
			count+=1;
		if(this.fax!=null)
			count+=1;
		if(this.qq!=null)
			count+=1;
		return count;
	}
	
}
